import requests
import parsel
from lxml import etree
url='https://ibaotu.com/shipin/'
headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'
    }
reponse=requests.get(url,headers=headers)
reponse.encoding=reponse.apparent_encoding
html=reponse.text
parse=parsel.Selector(html)
vedio_url_list=parse.xpath('//div[@class="video-play"]/video/@src').extract()
vedio_title_list=parse.xpath('//span[@class="video-title"]/text()').extract()
print(vedio_url_list)
html1=etree.HTML(html)
vedio_url_list=html1.xpath('//div[@class="video-play"]/video/@src')
vedio_title_list=html1.xpath('//span[@class="video-title"]/text()')
for tit,src in zip(vedio_title_list,vedio_url_list):
    print(tit,'http:'+src)
